'''
Created on 17/05/2013

@author: belentwi
'''
from app import db

class AtributoItem(db.Model):
    """
    Clase que representa la tabla atributo de la base de datos
    """
    __tablename__ = 'atributo_item'
    id = db.Column(db.Integer, primary_key=True)
    id_item =  db.Column(db.Integer)
    id_atributo = db.Column(db.Integer)
    version = db.Column(db.Integer)
    valor =  db.Column(db.String(50))
    
    def __init__(self, id_item=None, id_atributo=None, version = None, valor= ''):
        self.id_atributo = id_atributo
        self.id_item = id_item
        self.version = version
        self.valor = valor
        
